package com.hex.ds.hdtp.core.app.data.table.converter;

import com.hex.ds.hdtp.core.app.data.table.dto.request.TableTransferRunLogRequestDto;
import com.hex.ds.hdtp.core.app.data.table.dto.response.TableTransferRunLogResponseDto;
import com.hex.ds.hdtp.core.inf.data.table.po.TableTransferRunLogPo;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Package com.hex.ds.hdtp.core.app.data.table.converter
 * @ClassName ITableTransferRunLogConverter
 * @Description 表迁移执行记录-DTO对象转PO对象转换器
 * @Author Wang zhihao
 * @Date 2023/8/9 14:19
 * @Version v1.0
 **/
@Mapper(componentModel = "spring")
public interface ITableTransferRunLogConverter {

    /**
     * @Method toTableTransferRunLogPo
     * @Param
     * @param tableTransferRunLogRequestDto
     * @Return com.hex.ds.hdtp.core.inf.data.table.po.TableTransferRunLogPo
     * @Description RequestDto对象转Po对象
     * @Author Wang zhihao
     * @Date 2023/8/9 14:20
     * @Version V1.0
     */
    TableTransferRunLogPo toTableTransferRunLogPo(TableTransferRunLogRequestDto tableTransferRunLogRequestDto);

    /**
     * @Method toTableTransferRunLogResponseDtoList
     * @Param
     * @param tableTransferRunLogPos
     * @Return java.util.List<com.hex.ds.hdtp.core.app.data.table.dto.response.TableTransferRunLogResponseDto>
     * @Description PO对象集合转换ResponseDto对象集合
     * @Author Wang zhihao
     * @Date 2023/8/9 14:20
     * @Version V1.0
     */
    List<TableTransferRunLogResponseDto> toTableTransferRunLogResponseDtoList(List<TableTransferRunLogPo> tableTransferRunLogPos);
}
